package com.zz.stringBuilder;

public class good {
    public static void main(String args[]){
        //掌握StringBuilder的好处
        //需求：要拼接100万次abc
        //使用String对比
//        String rs = "";
//        for(int i = 0; i < 100000; i++){
//            rs += "abc";
//        }
//        System.out.println(rs);

        //StringBuilder
        StringBuilder s = new StringBuilder();
        for(int i = 0; i < 1000000; i++){
            s.append("abc");
        }
        System.out.println(s);
    }
}
